<%@ page pageEncoding="utf-8" session="false" contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>${archive.title}</title>
<meta name="keywords" content="test"/>
<meta name="description" content="test"/>
<meta name="robots" content="all"/>
<meta name="googlebot" content="all"/>
<meta name="baiduspider" content="all"/>
<meta name="copyright" content="All Rights Reserved 版权所有"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<link rel="stylesheet" type="text/css" href="${contextPath}/resource/note/css/base.css"/>
<link rel="stylesheet" type="text/css" href="${contextPath}/resource/note/theme/${archive.theme}"/>
<script type="text/javascript" src="${contextPath}/resource/user/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${contextPath}/resource/user/user.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/note.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/images.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/marked.min.js"></script>
</head>
<body>
<div class="wrap">
    <div class="wiki-panel">
        <h1 mimeType="${archive.mimeType}">${archive.title}</h1>
        <div class="wiki-ctrl">
            <a class="wiki-btn wiki-open" href="${contextPath}/note/archive/display.html?archiveId=${archive.archiveId}" target="_blank">新窗口</a>
            <c:if test="${editable}">
            <a class="wiki-edit" href="javascript:void(0);" archiveId="${archive.archiveId}" mimeType="text/html">编辑HTML</a>
            <a class="wiki-edit" href="javascript:void(0);" archiveId="${archive.archiveId}" mimeType="text/plain">编辑TEXT</a>
            </c:if>
            <a id="favorite-btn" class="wiki-btn" href="javascript:void(0)" favorite="${favorite}">收藏</a>
        </div>
<!-- archive content start -->
        <div>
            <textarea class="markdown" style="display: none;"><c:out value="${archiveContent.content}"/></textarea>
        </div>
<!-- archive content end -->
        <c:if test="${pageCount > 1}">
        <div name="scrollpage" class="scrollpage" theme="2" pageNum="${pageNum}" pageSize="1" count="${pageCount}" href="${contextPath}/note/archive/display.html?archiveId=${archive.archiveId}&pageNum=%s"></div>
        </c:if>
    </div>
</div>
<div class="scrolltop" onclick="window.scrollTo(0, 0)"></div>
<div id="pageContext" class="hide" contextPath="${contextPath}" owner="${owner}" userId="${userId}" archiveId="${archive.archiveId}"></div>
</body>
</html>
